{extends file="../home.html"}
{block name="title"}{$head_title}{/block}
{block name="css"}
<link rel="stylesheet" type="text/css" href="/Public/Css/front/front_css/system_set.css">
<link rel="stylesheet" type="text/css" href="/Public/Css/front/front_css/recharge_pay_pop.css">
<link rel="stylesheet" type="text/css" href="/Public/Css/front/front_css/my_wallet.css">
<style type="text/css">
	body{
		background-color: #f3f3f3;
	}
	.privacy{
		width: 93.6%;
		height: 2.5rem;
		color: #323232;
		background-color: #fff;
		padding: 0 3.2% 0 3.2%;
		border-bottom: 0.05rem solid #EFEFEF;
		line-height: 2.5rem;
		font-size: 0.8rem;
		display: block;
	}
	.icon_choose{
		width: 0.85rem;
		height: 0.85rem;
		background-image: url(/Public/Images/front/front_img/choose@3x.png);
		background-size: .85rem .85rem;
		background-repeat: no-repeat;
		display: inline-block;
		float: right;
		margin-top:0.85rem;
		display: none;
	}
</style>
{/block}
{block name="content"}
<div class="title">
	
	<div class="back_reload"><i class="icon_back"></i></div>
	<p><strong>动态设置</strong></p>
	
</div>
<span class="privacy" data-is_open="1" >完全公开<span class="icon_choose" style=" {if $is_open} display: block;{/if}"></span></span>
<span class="privacy" data-is_open="0">完全隐藏<span class="icon_choose" style=" {if !$is_open} display: block;{/if}"></span></span>

{/block}
{block name="js"}
<script>
	var is_click = false;
</script>
{literal}
	<script type="text/javascript">
		$('.return_icon').on('click',function(){
			// window.location.href  ='/FrontUserCenter/system_set'
			native_listen('back');
		});
		$('.privacy').on('click',function(){
			if(is_click == true) return;
			is_click = true;
			var _this = $(this);
			var is_open = _this.attr('data-is_open');
			console.log(is_open)
			$.ajax({
				type:'post',
				url:'/FrontUserCenter/privacy_set',
				data:{is_open:is_open},
				success:function (data) {
						if(data.code == 1){
							_this.children('span').show();
							_this.siblings('span').children('span').hide()
							// location.reload();
						}
					is_click = false;
				}
			})

		});

	</script>
{/literal}
{/block}
